/**
 * Created by apple on 2017/7/23.
 */
import {createStore} from 'redux';
import rootReducer from '../reducers';
//第二步 创建一个store;
const initalState={};
export default function configureStore(initalState) {
  return createStore(rootReducer,initalState,
    //用来启动redux的开发者工具
    window.devToolsExtension ? window.devToolsExtension() : undefined);
}



// export default function  config(init) {
//   return createStore(rootReducer,init,window.devToolsExtemsion ? window.devToolsExtension():undefined)
// }